//
//  HomepageMoreSubjectCell.m
//  Tour
//
//  Created by hesiyao on 16/3/9.
//  Copyright © 2016年 张中烨. All rights reserved.
//

#import "HomepageMoreSubjectCell.h"

@implementation HomepageMoreSubjectCell


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // photo
        self.photo = [[UIImageView alloc]init];
        self.photo.contentMode = UIViewContentModeScaleAspectFill;
        self.photo.clipsToBounds = YES;
        [self.contentView addSubview:_photo];
        
    }
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    _photo.frame = CGRectMake(5, 10, self.contentView.frame.size.width - 10, self.contentView.frame.size.height - 10);
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
